From: YAMAMOTO Mitsuharu Date: Tue, 31 Oct 2006 08:32:25 +0000 (+0000) Subject: (init_service_handler): Make variable `specs' static X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~32449 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=11e0f75563dddb35cf1381a69f46553182a684d8;p=emacs.git (init_service_handler): Make variable `specs' static const. --- diff --git a/src/macselect.c b/src/macselect.c index fd72bd3cb14..7a952f88367 100644 --- a/src/macselect.c +++ b/src/macselect.c @@ -1616,10 +1616,11 @@ remove_drag_handler (window) void init_service_handler () { - EventTypeSpec specs[] = {{kEventClassService, kEventServiceGetTypes}, - {kEventClassService, kEventServiceCopy}, - {kEventClassService, kEventServicePaste}, - {kEventClassService, kEventServicePerform}}; + static const EventTypeSpec specs[] = + {{kEventClassService, kEventServiceGetTypes}, + {kEventClassService, kEventServiceCopy}, + {kEventClassService, kEventServicePaste}, + {kEventClassService, kEventServicePerform}}; InstallApplicationEventHandler (NewEventHandlerUPP (mac_handle_service_event), GetEventTypeCount (specs), specs, NULL, NULL); }